]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
St: draw the actor at full opacity when creating shadow material
authorGiovanni Campagna <gcampagna@src.gnome.org>
Mon, 4 Jun 2012 22:13:26 +0000 (00:13 +0200)
committerJasper St. Pierre <jstpierre@mecheye.net>
Sat, 21 Feb 2015 01:46:50 +0000 (17:46 -0800)
When creating the shadow, we should ignore the opacity set on the
actor and its parent, as it will be applied again at a later stage.

https://bugzilla.gnome.org/show_bug.cgi?id=677412

src/st/st-private.c

index 4096d15c73f6c49aefda556c761f405aeb300069..c928e6aa757c763665f7d5f5042ad786d70effe9 100644 (file)
@@ -460,7 +460,10 @@ _st_create_shadow_pipeline_from_actor (StShadow     *shadow_spec,
       cogl_framebuffer_clear (fb, COGL_BUFFER_BIT_COLOR, &clear_color);
       cogl_framebuffer_translate (fb, -box.x1, -box.y1, 0);
       cogl_framebuffer_orthographic (fb, 0, width, height, 0, 0, 1.0);
+
+      clutter_actor_set_opacity_override (actor, 255);
       clutter_actor_paint (actor);
+      clutter_actor_set_opacity_override (actor, -1);
 
       G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
       cogl_pop_framebuffer ();